package zerous.dodgestones.core;
import com.badlogic.gdx.graphics.g2d.*;
import com.badlogic.gdx.graphics.*;
import com.badlogic.gdx.*;
import zerous.dodgestones.*;

public class Player extends GameObject
{
	public boolean died = false;
	Sprite body;
	public Player() {
		body = new Sprite(Traveler.PLAYER);
		body.setSize((Traveler.PLAYER.getWidth())*Info.PIXEL_SIZE, (Traveler.PLAYER.getHeight())*Info.PIXEL_SIZE);
		box.setSize(body.getWidth(), body.getHeight());
	}

	@Override
	public void draw(Batch batch) {
		position.add(velocity.add(accel));
		
		box.setPosition(position);
		body.setPosition(position.x, position.y);
		
		body.draw(batch);
	}
}
